import Vue from 'vue'
import VueRouter from 'vue-router'
import App from '../App.vue'
import Index from '../components/index.vue'
import Login from '../components/login.vue'


Vue.use(VueRouter)

const routes = [
	{
		path: '/login',
		component: Login
	},{
		path: '/',
		component : Index,
		children:[]
	}
]

const router = new VueRouter({
  routes
})

export default router
